<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
  <head>
  	<c:import url="../includes/headBootstrap.jsp"/>
    <title>Novo Lan&ccedil;amento</title>
  </head>
  <body>
    <c:import url="../includes/header.jsp"/>
    
    
    <div class="container">
    	<h3>Novo Lan&ccedil;amento</h3>
    	<br>

       
	    <form action="processaAdicao" method="post">
		  <div class="form-group">
		  	<select name="idInstituicao" class="btn btn-default btn-sm dropdown-toggle" required>
		  		<option value="" selected="selected" disabled>Selecione</option>
		  	<c:forEach items="${instituicoes}" var="instituicao">
		  		<option value="${instituicao.id}">${instituicao.nome}</option>
		  	</c:forEach>
		  	</select>
		  	<br><br>
		  	
		  	<input type="text" class="form-control" name="descItemFatura" placeholder="Descri&ccedil;&atilde;o" required>
		  	
		  	<br>
		  	<select name="numParcela" class="btn btn-default btn-sm dropdown-toggle" required>
		  		<option value="1">1&ordf; Parcela</option>
		  		<option value="2">2&ordf; Parcela</option>
		  		<option value="3">3&ordf; Parcela</option>
		  		<option value="4">4&ordf; Parcela</option>
		  		<option value="5">5&ordf; Parcela</option>
		  		<option value="6">6&ordf; Parcela</option>
		  		<option value="7">7&ordf; Parcela</option>
		  		<option value="8">8&ordf; Parcela</option>
		  		<option value="9">9&ordf; Parcela</option>
		  		<option value="10">10&ordf; Parcela</option>
		  		<option value="11">11&ordf; Parcela</option>
		  		<option value="12">12&ordf; Parcela</option>		  		
		  	</select>
		  	de
		  	<select name="qtdParcelas" class="btn btn-default btn-sm dropdown-toggle" required>
		  		<option value="1">1 parcela</option>
		  		<option value="2">2 parcelas</option>
		  		<option value="3">3 parcelas</option>
		  		<option value="4">4 parcelas</option>
		  		<option value="5">5 parcelas</option>
		  		<option value="6">6 parcelas</option>
		  		<option value="7">7 parcelas</option>
		  		<option value="8">8 parcelas</option>
		  		<option value="9">9 parcelas</option>
		  		<option value="10">10 parcelas</option>
		  		<option value="11">11 parcelas</option>
		  		<option value="12">12 parcelas</option>		  		
		  	</select>
		  	<br><br>
		  	
		  	<div class="input-group">
			  <span class="input-group-addon">R$</span>
			  <input type="text" class="form-control" name="valorItemFatura" placeholder="Valor Compra">
			</div>
			<br>
			<input type="text" class="form-control" name="dtOrigemCompra" placeholder="dd/mm/aaaa">
			<br>
		    
			<select name="idTerceiro" class="btn btn-default btn-sm dropdown-toggle">
		  		<option value="" selected="selected" disabled>Selecione</option>
		  	<c:forEach items="${terceiros}" var="terceiro">
		  		<option value="${terceiro.id}">${terceiro.nome}</option>
		  	</c:forEach>
		  	</select>
		  	<br>
		  	<br>
		  	
		  	<div class="input-group">
			  <span class="input-group-addon">R$</span>
			  <input type="text" class="form-control" name="valorTerceiro" placeholder="Valor Terceiro">
			</div>
				    
		  </div>
		  <button type="submit" class="btn btn-default" style="float:right;">Salvar</button>
		</form>
		
    </div>
		
		
	
	<c:import url="../includes/footBootstrap.jsp"/>    
  </body>
</html>